home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tex / style / misc / tracefnt.sty < prev    next >
Text File  |  1995-11-25  |  7KB  |  192 lines

  1. %% 
  2. %% This is file `tracefnt.sty' generated
  3. %% on <1991/1/20> with the docstrip utility (v1.1k). 
  4. %% 
  5. %% The original source file was `tracefnt.doc'.
  6. %% Included modules: `trace,style'.
  7. %% 
  8. %% 
  9. %% Copyright (C) 1989,1990,1991 by Frank Mittelbach, Rainer Schoepf. 
  10. %% All rights reserved. 
  11. %% 
  12. %% IMPORTANT NOTICE: 
  13. %% 
  14. %% You are not allowed to change this file. You may however copy this file 
  15. %% to a file with a different name and then change the copy. 
  16. %% 
  17. %% You are allowed to distribute this file under the condition that it is 
  18. %% distributed together with all files mentioned in readme.mz3. If you 
  19. %% receive only some of these files from someone, complain! 
  20. %% 
  21. %% You are NOT ALLOWED to distribute this file alone. You are NOT ALLOWED 
  22. %% to take money for the distribution or use of either this file or a 
  23. %% changed version, except for a nominal charge for copying etc. 
  24. %% 
  25. %% Error Reports in case of UNCHANGED versions to 
  26. %% 
  27. %% 
  28. %% F. Mittelbach 
  29. %% Eichenweg 29 
  30. %% D-6500 Mainz 1 
  31. %% Federal Republic of Germany 
  32. %% Bitnet: <PZF5HZ@RUIPC1E> 
  33. %% 
  34. %% or: 
  35. %% R. Sch{\accent "7F o}pf 
  36. %% Konrad-Zuse-Zentrum f{\accent "7F u}r Informatik Berlin 
  37. %% Heilbronner Stra{\ss }e 10 
  38. %% D-1000 Berlin 31 
  39. %% Federal Republic of Germany 
  40. %% Internet: <Schoepf4@sc.ZIB-Berlin.dbp.de> 
  41. %% 
  42. %% 
  43. %% 
  44. %% Please do not request updates from us directly. Distribution is done 
  45. %% through Mail-Servers and TeX organizations. 
  46. %% 
  47. %% 
  48. %% 
  49. \def\fileversion{v1.0r}
  50. \def\filedate{90/08/27}
  51. \def\docdate {90/04/05}
  52.  
  53. %% \CheckSum{334}
  54. %% \CharacterTable
  55. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  56. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  57. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  58. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  59. %%   Dollar        \$     Percent       \%     Ampersand     \&
  60. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  61. %%   Asterisk      \*     Plus          \+     Comma         \,
  62. %%   Minus         \-     Point         \.     Solidus       \/
  63. %%   Colon         \:     Semicolon     \;     Less than     \<
  64. %%   Equals        \=     Greater than  \>     Question mark \?
  65. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  66. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  67. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  68. %%   Right brace   \}     Tilde         \~}
  69. %%
  70. \@ifundefined{new@fontshape}
  71.  {\errmessage{The style option `tracefnt' does not make sense if you
  72.               do not use a format with the new font selection scheme.}
  73.   \endinput}
  74.   {}
  75.  \immediate\write\sixt@@n{Style Option: `tracefnt'
  76.  \fileversion\space <\filedate>  (FMi and RmS)}
  77. \immediate\write\sixt@@n{English Documentation
  78.  \@spaces\@spaces\space  <\docdate>  (FMi and RmS)}
  79. \immediate\write\sixt@@n{Includes module(s):
  80.  trace
  81. }
  82. \def\extract@font{%
  83.     \def\@tempa{\def\extract@fontinfo####1}%
  84.     \edef\@tempb{<\expandafter\strip@prefix\meaning\f@size>}%
  85.     \expandafter\@tempa\@tempb##2##3<##4\@nil{%
  86.       \global\expandafter\font \font@name
  87.            \ifcase0##2##3\relax\or
  88.                    ##3
  89.                     \font@warning{Font/shape
  90.                               `\f@family/\f@series/\f@shape'
  91.                               in size \@tempb\space  not available}%
  92.                     \font@warning{Using external font `##3'
  93.                                     instead}\else
  94.                   \default@errfont \errhelp\nofont@help
  95.                          \errmessage{Font \expandafter
  96.                                     \string\font@name\space
  97.                                     not found}%
  98.                \fi
  99.    \ifnum \tracingfonts >\@ne
  100.    \typeout{Loading external  ##2##3 as \font@name
  101.             \on@line}\fi
  102.               }%
  103.     \edef\font@info{\expandafter\expandafter\expandafter\string
  104.         \csname \f@family/\f@series/\f@shape \endcsname\@tempb}%
  105.     \expandafter\extract@fontinfo\font@info 3<\@nil
  106.     \csname +\f@family \expandafter
  107.        \endcsname \font@name \relax}
  108.  
  109. \def\p@selectfont{%
  110.     \xdef\font@name{%
  111.       \csname\f@family/\f@series/\f@shape/\f@size\endcsname}%
  112.     \pickup@font
  113.     \font@name
  114.  \ifnum \tracingfonts>\tw@
  115.    \typeout{Switching to \font@name \on@line}\fi
  116.     \ifx \glb@currsize \lcl@currsize
  117.      \else
  118.     \setnew@baselineskip
  119.     \baselineskip\baselinestretch\baselineskip
  120.     \setbox\strutbox\hbox{\vrule\@height.7\baselineskip
  121.         \@depth.3\baselineskip \@width\z@}%
  122.     \normalbaselineskip\baselineskip
  123.  \ifnum \tracingfonts>\tw@
  124.    \typeout{Changing size or baselineskip ...}\fi
  125.      \glb@settings \the\every@size
  126.  \ifnum \tracingfonts>\tw@
  127.    \aftergroup\type@restoreinfo \fi
  128.        \aftergroup\glb@settings \fi
  129.  \ifnum \tracingfonts>\tw@
  130.   \gdef\font@restore{\xdef\font@name{%
  131.     \csname\f@family/\f@series/\f@shape/\f@size\endcsname}%
  132.     \typeout{Restoring \space\space\space\font@name \on@line}%
  133.     \global\let\font@restore\@empty}%
  134.    \aftergroup\font@restore
  135.  \fi
  136.     }
  137.  \def\type@restoreinfo{\typeout{Restoring size
  138.                        or baselineskip ...}}
  139. \def\baselinestretch{1}
  140. \newtoks\every@size
  141. \every@size={}
  142. \def\use@mathgroup#1#2{\relax\ifmmode
  143.  \ifnum \tracingfonts>\tw@
  144.    \count@#2\relax
  145.    \typeout{Switching to \string\mathgroup\space #2
  146.             (\the\count@)\on@line}\fi
  147.      \math@bgroup
  148.          #1\mathgroup#2\relax
  149.      \expandafter\math@egroup\fi}%
  150.  \ifx\math@bgroup\begingroup
  151.    \def\math@egroup#1{#1\endgroup
  152.      \ifnum \tracingfonts>\tw@
  153.     \typeout{Restoring \space\space\space\string\mathgroup\space
  154.        (\ifnum\mathgroup=\m@ne default\else \the\mathgroup \fi)%
  155.              \on@line}\fi}
  156.  \fi
  157. \def\getanddefine@fonts#1#2{%
  158.  \ifnum \tracingfonts>\tw@
  159.  \count@#1\relax
  160.    \typeout{Setting up \string\mathgroup\space #1 (\the\count@)
  161.             as \string#2 \f@size/\sf@size/\ssf@size\on@line}\fi
  162.   \xdef\font@name{\csname \string#2/\f@size\endcsname}%
  163.   \pickup@font \let\textfont@name\font@name
  164.   \xdef\font@name{\csname \string#2/\sf@size\endcsname}%
  165.   \pickup@font \let\scriptfont@name\font@name
  166.   \xdef\font@name{\csname \string#2/\ssf@size\endcsname}%
  167.   \pickup@font
  168.   \edef\math@fonts{\math@fonts
  169.                \textfont#1\textfont@name
  170.                \scriptfont#1\scriptfont@name
  171.                \scriptscriptfont#1\font@name}%
  172.     }
  173. \def\tracingfonts{\font@warning{\string\tracingfonts\space
  174.                   command not provided.^^J
  175.                   Use `tracefnt' option in \string\documentstyle\space
  176.                   command.^^J Command found:}%
  177.                   \count@}
  178.    \newcount\tracingfonts
  179.  \tracingfonts=3 %MH
  180. \def\font@warning#1{%
  181.  \ifnum\tracingfonts>\z@
  182.  \errhelp{This is only a warning message but it gives you^^J%
  183.           time to think about the font substitution above.}%
  184.  \errmessage{Warning: #1}\else
  185.           \immediate\write\sixt@@n{Warning: #1\on@line.}%
  186.  \fi
  187.           }
  188.  
  189. \endinput
  190. %% 
  191. %% End of file `tracefnt.sty'.
  192.